<template>
  <div class="common-layout">
   <el-container>
      <el-aside class="aside">
        <Aside />
      </el-aside>
      <el-container>
        <el-header><Menu /></el-header>
        <el-main>
          <router-view></router-view>
        </el-main>
      </el-container>
    </el-container>
  </div>
</template>

<script setup>
import Menu from './Menu.vue'
import Aside from '../components/Aside.vue'

</script>

<style scoped>
.common-layout .el-header,
.common-layout .el-footer {
  background-color: var(--bg-seco);
  text-align: center;
  line-height: 60px;
}
.common-layout .el-footer {
  line-height: 60px;
}

.common-layout .el-aside {
  background-color: #d3dce6;
  text-align: center;
  line-height: 200px;
}

.common-layout .el-main {
  background-color: #e9eef3;
  text-align: center;
  line-height: 160px;
}

.common-layout .el-container:nth-child(5) .el-aside,
.common-layout .el-container:nth-child(6) .el-aside {
  line-height: 260px;
}

.common-layout .el-container:nth-child(7) .el-aside {
  line-height: 320px;
}
/* 左侧边栏 */
.aside{
  width:300px;
  min-height: 100vh;
  background-color: var(--bg-seco) !important;
}
</style>